package com.newtouch.bxzs.common.base.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 个人业绩实体类
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/1/7</td>
 * <td>tianshangzhu</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author tianshangzhu
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@TableName(value = "ASSISTANT_USER_ACHIEVEMENT")
public class UserAchievement implements Serializable {
    /**serialVersionUID*/
    private static final long serialVersionUID = 3509636072101613498L;
    /**
     * 用户业绩信息ID
     */
    @TableId(value = "USER_ACHIEVEMENT_ID", type = IdType.ASSIGN_UUID)
    private String userAchievementId;
    /**
     * 创建人ID
     */
    @TableField(value = "CREATE_USER_ID")
    private String createUserId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CREATE_TIME")
    private Date createTime;
    /**
     * 修改人ID
     */
    @TableField(value = "UPDATE_USER_ID")
    private String updateUserId;

    /**
     * 修改时间
     */
    @TableField(value = "UPDATE_TIME")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "MEMO")
    private String memo;
    /**
     * 月份
     */
    @TableField(value = "MONTH")
    private Date month;
    /**
     * 用户工号
     */
    @TableField(value = "USER_JOB_NUMBER")
    private String userJobNumber;
    /**
     * 规模保费
     */
    @TableField(value = "SCALE_PREMIUM")
    private Double scalePremium;

    /**
     * 标准保费
     */
    @TableField(value = "STANDARD_PREMIUM")
    private Double standardPremium;

    /**
     * 个人业绩
     */
    @TableField(value = "ACHIEVEMENT_PERSONAL")
    private Integer achievementPersonal;
    /**
     * 用户机构编码
     */
    @TableField(value = "USER_ORGANIZATION_CODE")
    private String userOrganization;

    /**
     * 数据来源
     */
    @TableField(value = "DATA_SOURCE")
    private String dataSource;

    /**
     * 件数
     */
    @TableField(exist = false)
    private Integer achievementPolicyNumber;
    /**
     * 按照月份
     */
    @TableField(exist = false)
    private String yearMonth;

}
